from random import randint
lst = [randint(40,100)for _ in range(10)]
avg=sum(lst)/len(lst)
if avg>=90:
    s = "优秀"
elif avg>=75:
    s = "良好"
elif avg>=60:
    s = "中等"
else:
    s = "不及格"
print('平均分:{:.1f},{}'.format(avg,s))
